<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文字渲染</title>
    <style>
        .h{
            width: 200px;
            height: 100px;
            background-color: #0000FF;
            color: white;
            font-family: 黑体,serif;
            font-weight: 600;
            text-align: center;
            line-height: 100px;
        }
        .p{
            width: 200px;
            height: 100px;
            background-color: #ffffff;
            color: #26b43b;
            font-family: 宋体,serif;
            font-weight: 600;
            text-align: center;
            line-height: 100px;
        }
    </style>
</head>
<body>
<div>
    <h3 class="h">标题</h3>
    <p class="p">这是一个段落</p>
</div>


</body>
</html>